package com.xiaoyu.tool.entity.order;

import com.xiaoyu.tool.entity.common.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.util.Date;

/**
 * @author xiaoyu on 2018/11/01
 */
@Entity
@Table(name = "orderAddress")
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderAddress extends AbstractEntity {

    @Column
    private Long orderId;

    @Column
    private String province;

    @Column
    private String city;

    @Column
    private String district;

    @Column
    private String street;

    @Column
    private String phone;

    @Column
    private String name;

    @Column
    @Temporal(TemporalType.TIMESTAMP)
    private Date sendAt;

}
